<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>登录失败！</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
		<style type="text/css">
		html body{
			background-color: #000000;
		}
		#fault{
			margin: 200px auto;
		}
		#fault p{
			color: #599ee4;
			font: 13px "微软雅黑";
		}
		#fault a{
			color: #4b72e2;
			font: 10px "微软雅黑";
		}
		</style>

	</head>

	<body>
		<div id="fault" align="center">
			<s:if test="#session.admin==null">
				<meta http-equiv="refresh" content="8; url=login.jsp" />
				<p>
					用户名或密码错误，请重新登录！
				</p>
				<a href="./login.jsp">若没有自动跳转，请点击这里</a>
			</s:if>
			<s:else>
				<meta http-equiv="refresh" content="8; url=administrator.jsp" />
				<p>
					欢迎您，<s:property value="#session.admin.uname" />！
				</p>
				<a href="./administrator.jsp">若没有自动跳转，请点击这里</a>
			</s:else>
		</div>
	</body>
</html>
